package com.salt.modules.sys.mapper;


import com.salt.common.persistence.TreeMapper;
import com.salt.modules.sys.entity.Office;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 机构MAPPER接口
 * @author salt
 * @version 2017-05-16
 */
@Mapper
@Repository
public interface OfficeMapper extends TreeMapper<Office> {
	
	public Office getByCode(String code);

	public List<Office> findByIds(@Param("ids") List<String> ids);

}
